from django.urls import path
from . import views

app_name = 'web_monitor'

urlpatterns = [
    # 任务管理相关接口
    path('get_task_info/', views.get_task_info, name='get_task_info'),
    path('task_list/', views.task_list, name='task_list'),
    path('cancel_task/', views.cancel_task, name='cancel_task'),
    path('stop_task/', views.stop_task, name='stop_task'),
    
    # 执行总结相关接口
    path('submit_execution_summary/', views.submit_execution_summary, name='submit_execution_summary'),
    path('get_execution_summary/', views.get_execution_summary, name='get_execution_summary'),
    
    # 校验相关接口
    path('push_validation_result/', views.push_validation_result, name='push_validation_result'),
    path('get_error_logs/', views.get_error_logs, name='get_error_logs'),
    path('get_validation_error_summary/', views.get_validation_error_summary, name='get_validation_error_summary'),

    # 历史数据管理相关接口
    path('', views.get_history, name='get_history'),  # 默认路径，对应/api/history/
    path('get_push_result/', views.get_push_result, name='get_push_result'),
    path('get_all_push_results/', views.get_all_push_results, name='get_all_push_results'),
    path('query_history_data/', views.query_history_data, name='query_history_data'),
    path('delete_history_data/', views.delete_history_data, name='delete_history_data'),
    path('batch_delete_history_data/', views.batch_delete_history_data, name='batch_delete_history_data'),
    path('cleanup_history_data/', views.cleanup_history_data, name='cleanup_history_data'),
    path('get_history_stats/', views.get_history_stats, name='get_history_stats'),
]